<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>


		<title>找回密码</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
	
		<script type="text/javascript">
function reloadImg() {
	var i = Math.random();
	document.getElementById("imgCode").src = "AuthImg.jpg?" + i;
}
</script>
	</head>

	<body>
		<s:form action="getpassword" theme="simple">

			<table border="1">
				<tr>
					<td align="right">
						登陆名:
					</td>
					<td>
						<s:textfield name="user.accountName" label="登陆名" size="12"></s:textfield>

					</td>
					<td>
						<s:fielderror cssStyle="color:red">
							<s:param>user.accountName</s:param>
						</s:fielderror>
					</td>
				</tr>
				<tr>
					<td align="right">
						密码提示问题:
					</td>
					<td>
						<s:select list="{'最喜欢的宠物?','最喜爱的电影?','周年纪念日?','父亲的名字?','配偶的名字?'}"
							name="user.question" label="密码问题" headerKey="-1"
							headerValue="请选择"></s:select>
					</td>
              <td>
						<s:fielderror cssStyle="color:red">
							<s:param>user.question</s:param>
						</s:fielderror>
					</td>
				</tr>
				<tr>
					<td align="right">
						密码提示答案:
					</td>
					<td>
						<s:textfield name="user.answer" label="密码答案"></s:textfield>

					</td>
					<td>
						<s:fielderror cssStyle="color:red">
							<s:param>user.answer</s:param>
						</s:fielderror>
					</td>
				</tr>
				<tr>
					<td align="right">
						验证码：
					</td>
					<td>
						<s:textfield label="验证码" name="vercode" size="3">
						</s:textfield>
						<img name="d" id="imgCode" src="AuthImg.jpg" />
						<a href="javascript:reloadImg();">看不清?换一张</a>
					</td>
					<td>
						<s:fielderror cssStyle="color:red">
							<s:param>vercode</s:param>
						</s:fielderror>
					</td>
				</tr>
				<tr>
					<td colspan="3" align="center">

						<s:submit label="submit" value="找回密码"></s:submit>
						<s:reset label="reset" value="重新填写">
						</s:reset>
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>
